const config = {
  test: {
     api: ''
  },
  dev: {
     api: ''
  }
}
let key = 'none'
const addr = window.location.hostname
const index = addr.lastIndexOf('.')
const pattern = addr.substring(0, index)
for (const c in config) {
  if (config[c].base.indexOf(pattern) !== -1) {
    key = c
    break
  }
}
window.VueENV = {
  NODE_ENV: 'production',
  BASE_API: config[key].api

}
